package aole.codeflow;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class Code {
	private SimpleIntegerProperty	serial;
	private SimpleStringProperty	code;
	private Code					gotoCode;

	public Code( int s, String c ) {
		serial = new SimpleIntegerProperty( s );
		code = new SimpleStringProperty( c );
	}

	public int getSerial() {
		return serial.getValue();
	}

	public void setSerial( int s ) {
		serial.set( s );
	}

	public String getCode() {
		return code.get();
	}

	public void setCode( String c ) {
		code.set( c );
	}

	public Code getGotoCode() {
		return gotoCode;
	}

	public void setGotoCode(Code c) {
		gotoCode = c;
	}
	
	public String toString() {
		return serial.get() + ":" + code.get();
	}
}
